#include "cdownloadcell.h"

#include <buola/widgets/cprogressbar.h>
#include <buola/widgets/clabelbox.h>

namespace buola { namespace bitviewer {

CDownloadCell::CDownloadCell()
{
    mProgressBar=new gui::CProgressBar;
    Place(mProgressBar);
    mNameLabel=new gui::CLabelBox(L"name");
    Place(mNameLabel);
    mDownloadLabel=new gui::CLabelBox(L"download");
    Place(mDownloadLabel);
    mUploadLabel=new gui::CLabelBox(L"download");
    Place(mUploadLabel);
}

void CDownloadCell::OnLayout()
{
    mNameLabel->Map({10,10,Size().x-20,20});
    mProgressBar->Map({10,30},{Size().x-20,30});
    mDownloadLabel->Map({10,55},{50,20});
    mUploadLabel->Map({70,55},{50,20});
}

/*namespace bitviewer*/ } /*namespace buola*/ }
